package com.smmisia.shop.entity.convetor;

import com.smmisia.shop.entity.Ticket;
import com.smmisia.shop.response.dto.ComboTicketDTO;
import com.smmisia.shop.response.dto.TicketDTO;
import org.mapstruct.Mapper;
import org.mapstruct.NullValueCheckStrategy;
import org.mapstruct.factory.Mappers;

@Mapper(nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface TicketConvertor {
    TicketConvertor INSTANCE = Mappers.getMapper(TicketConvertor.class);

    TicketDTO toDTO(Ticket ticket);

    ComboTicketDTO toComboDTO(Ticket ticket);
}
